import { App } from 'vue'
import {
    NDataTable,
    NButton,
    NIcon,
    NForm,
    NFormItem,
    NRadioGroup,
    NRadio, NInput,
    NCard,
    NGridItem,
    NGrid,
    NGi,
    NDrawer,
    NDivider,
    NTree,
    NSkeleton,
    NTreeSelect,
    NInputNumber,
    NSpace,
    NModal,
    NSelect,
    NTag
} from 'naive-ui'

// 这里添加经常使用的全局NaiveUI组件
export default {
    install(_app: App) {
        _app.component('NDataTable', NDataTable)
        _app.component('NButton', NButton)
        _app.component('NIcon', NIcon)
        _app.component('NForm', NForm)
        _app.component('NInput', NInput)
        _app.component('NCard', NCard)
        _app.component('NGrid', NGrid)
        _app.component('NGi', NGi)
        _app.component('NGridItem', NGridItem)
        _app.component('NDrawer', NDrawer)
        _app.component('NDivider', NDivider)
        _app.component('NTree', NTree)
        _app.component('NSkeleton', NSkeleton)
        _app.component('NFormItem', NFormItem)
        _app.component('NRadioGroup', NRadioGroup)
        _app.component('NRadio', NRadio),
            _app.component('NTreeSelect', NTreeSelect),
            _app.component('NInputNumber', NInputNumber),
            _app.component('NSpace', NSpace),
            _app.component('NModal', NModal),
            _app.component('NSelect', NSelect),
            _app.component('NTag', NTag)

    }
}
